home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
013a
/
tty_em.zip
/
READ.ME
next >
Wrap
Text File
|
1991-11-22
|
3KB
|
76 lines
% Apple Laserwriters have a Diablo 630 emulation mode, but most
% other postscript printers cannot print a simple DOS file on a
% Novell network.
%
% TTY-EMU.PDF is a Novell print definition that contains a
% print header which is actually a postscript program to emulate a
% TTY device (A generic printer) on a postscript printer.
%
% TTY-EMU.PS is the striped-down version of this 250 byte program.
% The bottom of this READ.ME is the commented version.
%
% To use:
% Run PRINTDEF, Import TTY-EMU.PDF
% Run PRINTCON to set up a job configuration which uses TTY-EMU
% Set PRINT HEADER=255 in your SHELL.CFG (create in same subdir as NETx.COM
% Run CAPTURE with JOB=your new print job configuration
%
% This small program represents dozens of hours of labor and reams of paper.
% The logic was not to difficult, but getting it packed into 255 bytes
% (Novell's print header limit) was a huge challenge.
% If you find this work to be of benefit to you or your company,
% I do request that you send $10 to:
% SCOTT MEYER
% 1611 PALM DRIVE
% FORT COLLINS, CO 80526
%
% Known problems and limitations:
% Extra page after well behaved form feeding applications
% ... try to switch to line output instead of form feeding.
% ... try to supress the application's end of document form feed.
% No extended IBM character set
% On some printers, small jobs (like print screens) may print fine,
% but terminate with a postscript error.
% ... some postscript printers have a problem with end-of-file on small jobs.
% ... I don't have a fix.
%
% These problems could all be easily solved if the program could be any
% larger than 255 bytes. But it can't...
% PROCEDURE DEFINITIONS
/H{30 756 moveto}def % HOME: set current point to upper left.
/P{showpage H}def % PAGE: output existing page and HOME.
/R % RETURN: process carriage return
{
30 % Get new X
currentpoint exch pop % Get current Y
11.3 sub dup % Go subtract 11.3 points from Y
18 le % Check if Y is less than 18 points
{pop pop P} % less: throw away X & Y then PAGE
{moveto}ifelse % greater: moveto new X,Y.
}def
/F % FILE: read and print file.
{
{
currentfile 512 string readline % Read from current file, Push on stack
not{exit}if % if end of file then terminate
(\f)search % search for formfeed
{exch pop show P}if % if formfeed: print first part, then PAGE
show R % print whatever is left, then RETURN
}loop % keep going
P % output PAGE when done
}def
% START OF EXECUTING CODE
% Set 10 point courier font
/Courier findfont 10 scalefont setfont
% Execute HOME then FILE.
% All remaining text after the "F" will
% be treated as incoming ASCII text.
H F